home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
djgpp
/
libsrc
/
c
/
bios
/
biostime.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-07-16
|
327 b
|
16 lines
#include <bios.h>
#include <go32.h>
#include <dpmi.h>
#include <stdlib.h>
long biostime(int cmd, long newtime)
{
_go32_dpmi_registers r;
memset(&r, 0, sizeof(r));
r.h.ah = cmd;
r.x.cx = newtime >> 16;
r.x.dx = newtime & 0xffff;
_go32_dpmi_simulate_int(0x1a, &r);
return (r.x.cx << 16) | r.x.dx;
}